package com.atguigu.boot;

import com.atguigu.boot.entity.Dog;
import com.atguigu.boot.entity.MyBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BootMybatisApplication {

    public static void main(String[] args) {

        /*Bean注解&configure注解
        ConfigurableApplicationContext applicationContext = SpringApplication.run(BootMybatisApplication.class, args);
        Dog dog1 = (Dog) applicationContext.getBean("myDog");
        System.out.println("dog1:"+dog1.toString());

        MyBean myBean = applicationContext.getBean(MyBean.class);
        System.out.println("myBean:"+myBean.toString());*/

        SpringApplication.run(BootMybatisApplication.class,args);

    }

}
